home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ IIS Messages 1.xpl < prev    next >
Text File  |  1999-09-13  |  1KB  |  44 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Internet\Internet Information Server\Other"
  5. "NAME"="Messages"
  6. "VERSION"="1.15"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Access Denied"
  9. "DESCRIPTION 1"="The "Access Denied" message is sent to the user if he has tried to get a file and he has no permissions to get it."
  10. "AUTHOR"="Xteq Systems"
  11. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  12. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  13.  
  14.  
  15. 'Declaration of some constants
  16. sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
  17. sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
  18. sP2="HKLM\System\CurrentControlSet\Services\InetInfo\Parameters\"
  19. vAD="AccessDeniedMessage" 'string
  20.  
  21. 'Called when the Plugin is started
  22. Sub Plugin_Initialize
  23.  if RegPathExists(sPC) then
  24.   s=RegReadValue(sp & vAD)
  25.   SetUIElement 1,s
  26.  else
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31. 'Called when the Plugin should validate the Data the user has entered
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. 'Called when the Plugin should apply the changes
  36. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  37.  s=GetUIElement(1)
  38.  Call RegWriteValue(sp & vad,s,1)
  39. End Sub
  40.  
  41. 'Called when the Plugin is about to be removed from memory
  42. Sub Plugin_Terminate
  43. End Sub
  44.